ArtXGUI can interact in one of three modes:
- Edit mode lets users create or edit marks.
- Run mode lets users operate on Hot Spot, Encryption, Image Reference, Audio, and Button activities.
- View-only mode allows users to view marks but not add or modify them.
Your application can switch the mode from one to another by setting the IG_ARTX_GUI_mode_set function.
ArtXGUI code implements abstract ArtX...Processor objects for each mode:
- View mode processor is implemented via ArtXViewProcessor object.
- Run mode processor is implemented via ArtXRunProcessor object.
- Edit mode processor is implemented via ArtXEditProcessor object.
Those classes are distributed with ImageGear ArtXGUI component and can be modified to fit in your application.
While you are in the View mode, your application will not have to deal with any ART-related events via ArtXViewProcessor: it simply loads the image and ART marks and displays them.
If your application switches to Run mode, then it will have to start dealing with specific ART-related events via ArtXRunProcessor. For example, for an Encryption mark, when the image and ART marks are first loaded and displayed, the Encryption mark will obscure some or all of the image. When the user moves the cursor over the mark, the cursor will change to a pointing hand cursor. ART Forms event handler will display a dialog box asking for the password to enable viewing of that portion of the image, and then (if the user gets the password right), reveal the image.
If your application switches to Edit mode, then it will have to start dealing with specific ART-related events via ArtXEditProcessor.